<template>
	<view class="complaint-detail">
		<view class="menuItem menuItem1">
			<view class="time_line flex-between"><text>投诉状态:</text><text class="status">{{element.Status==0?'受理中':'已完成'}}</text></view>
			<view class="time flex-between"><text>投诉日期：</text>{{element.AddTime}}</view>
			<view class="userComplaintContain flex-between"><text>投诉内容：</text><text>{{element.FeedbackContent}}</text></view>
			<view class="imgBox" v-if="element.WeiXinImgList">
				<view class="imgBox_item" v-for="(menuItem,num) in element.WeiXinImgList" :key="num" @click="previewImg(menuItem)">
					<image :src="menuItem" mode="aspectFill"></image>
				</view>
			</view>
		</view>
	</view>
</template>


<script>
	export default {
		data() {
			return {
				element:{}
			};
		},
		onLoad(props){
			const item = JSON.parse(decodeURIComponent(props.item));
			console.log("item",item)
			this.element = {...item}
		}
	}
</script>

<style lang="scss" scoped>
.complaint-detail{
	padding:0 20rpx;
	font-size: 26rpx;
	line-height: 40rpx;
	.flex-between{
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.time_line{
		.status{
			color: #eb8a3e;
			font-weight: 600;
			text-align: right;
		}
	}
	.userComplaintContain{
		width: 100%;
		text{
			margin-top: 10rpx;
			display: -webkit-box;  
		}
	}
	.imgBox_item{
		width: 130rpx;
		height: 130rpx;
		margin: 10rpx;
		border: 1rpx solid #f5f5f5;
		border-radius: 10rpx;
		overflow: hidden;
		image{
			width: 100%;
			height: 100%;
		}
	}
}
</style>
